package com.object;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        //接受数据输入的内容
        System.out.println("请输入一个字符串的内容");

        String line = scanner.nextLine();

        System.out.println("您输入的字符串是:"+line);
    }
}
